package websocket

import (
	"qmp_go_push/pkg/socket"
)

type socketRouter struct {
	Exec     string
	Callable socket.SocketCallable
}

var socketRouters = []socketRouter{}

func init() {
	socketRouters = append(socketRouters, socketApi...)
}

func RegisterRouters() {
	for _, item := range socketRouters {
		socket.AddHandler(item.Exec, item.Callable)
	}
}
